import Vue from 'vue'
import App from './App.vue'
import router from './router'
import service from "./service/service";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//导入图片预览viewer组件以及css
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer);
Viewer.setDefaults({
  Options: {
    "inline": true,
    "button": true,
    "navbar": true,
    "title": true,
    "toolbar": true,
    "tooltip": true,
    "movable": true,
    "zoomable": true,
    "rotatable": true,
    "scalable": true,
    "transition": true,
    "fullscreen": true,
    "keyboard": true,
    "url": "data-source"
  }
});
Vue.use(ElementUI);
Vue.prototype.$api = service;

// 引入vue-bmap-gl
/*import VueBMap from "vue-bmap-gl";
import VueMapvgl from "vue-mapvgl";
import "vue-bmap-gl/dist/style.css";

Vue.use(VueBMap);
Vue.prototype.VueBMap = VueBMap;
Vue.use(VueMapvgl);
Vue.prototype.VueMapvgl = VueMapvgl;

// 初始化vue-bmap
VueBMap.initBMapApiLoader({
  // 百度的key
  ak: "ee9gGsqLA3rtIUbqC2AGUmjpeWrzrg4k",//用自己的百度地图ak
  // 百度 sdk 版本，默认为 1.0
  v: "1.0"
});*/

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
